Fix help output for nested subcommands
authorOwen W. Taylor <otaylor@fishsoup.net>
Tue, 23 Sep 2014 19:33:13 +0000 (15:33 -0400)
committerOwen W. Taylor <otaylor@fishsoup.net>
Thu, 25 Sep 2014 07:08:06 +0000 (03:08 -0400)
Only 'ostree admin' was appearing in the help message for commands
nested within ostree admin.

https://bugzilla.gnome.org/show_bug.cgi?id=737194

src/ostree/ot-admin-builtin-instutil.c
src/ostree/ot-builtin-admin.c

index 9e5712009af7eb8e6c7e13017934966c74ad403c..c87ffa4ea01d761747c4d18cb7ae4acb9b5270e4 100644 (file)
@@ -151,6 +151,8 @@ ot_admin_builtin_instutil (int argc, char **argv, OstreeSysroot *sysroot, GCance
       goto out;
     }
 
+  g_set_prgname (g_strdup_printf ("ostree admin instutil %s", subcommand_name));
+
   if (!subcommand->fn (argc, argv, sysroot, cancellable, error))
     goto out;
  
index 533f15f9e914ee2e650e40bc4ccb1d1a1029adf8..ef54797e68f720330289a2a3aa9ea1396fc810b3 100644 (file)
@@ -179,6 +179,8 @@ ostree_builtin_admin (int argc, char **argv, OstreeRepo *repo, GCancellable *can
       goto out;
     }
 
+  g_set_prgname (g_strdup_printf ("ostree admin %s", subcommand_name));
+
   sysroot_path = g_file_new_for_path (opt_sysroot);
   sysroot = ostree_sysroot_new (sysroot_path);
   if (!subcommand->fn (argc, argv, sysroot, cancellable, error))